home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat7 / inet.z / inet
Encoding:
Text File  |  1998-10-20  |  4.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4. IIIINNNNEEEETTTT((((7777FFFF))))                                                              IIIINNNNEEEETTTT((((7777FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      inet - Internet protocol family
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<nnnneeeettttiiiinnnneeeetttt////iiiinnnn....hhhh>>>>
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      The Internet protocol family is a collection of protocols layered atop
  17.      the _I_n_t_e_r_n_e_t _P_r_o_t_o_c_o_l (IP) transport layer, and utilizing the Internet
  18.      address format.  The Internet family provides protocol support for the
  19.      SOCK_STREAM, SOCK_DGRAM, and SOCK_RAW socket types; the SOCK_RAW
  20.      interface provides access to the IP protocol.
  21.  
  22. AAAADDDDDDDDRRRREEEESSSSSSSSIIIINNNNGGGG
  23.      Internet addresses are four byte quantities, stored in network standard
  24.      format.  The include file <_n_e_t_i_n_e_t/_i_n._h> defines this address as a
  25.      discriminated union.
  26.  
  27.      Sockets bound to the Internet protocol family utilize the following
  28.      addressing structure:
  29.  
  30.      struct sockaddr_in {
  31.             short     sin_family;
  32.             u_short   sin_port;
  33.             struct    in_addr sin_addr;
  34.             char      sin_zero[8];
  35.      };
  36.  
  37.      Sockets may be created with the local address INADDR_ANY to effect
  38.      "wildcard" matching on incoming messages. The address in a _c_o_n_n_e_c_t(2) or
  39.      _s_e_n_d_t_o(2) call may be given as INADDR_ANY to mean ``this host.''  The
  40.      distinguished address INADDR_BROADCAST is allowed as a shorthand for the
  41.      broadcast address on the primary network if the first network configured
  42.      supports broadcast.
  43.  
  44. PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLLSSSS
  45.      The Internet protocol family is comprised of the IP transport protocol,
  46.      Internet Control Message Protocol (ICMP), Internet Group Management
  47.      Protocol (IGMP), Transmission Control Protocol (TCP), and User Datagram
  48.      Protocol (UDP).  TCP is used to support the SOCK_STREAM abstraction while
  49.      UDP is used to support the SOCK_DGRAM abstraction.  A raw interface to IP
  50.      is available by creating an Internet socket of type SOCK_RAW.  The ICMP
  51.      message protocol is accessible from a raw socket.
  52.  
  53.      The 32-bit Internet address contains both network and host parts.  It is
  54.      frequency-encoded; the most-significant bit is clear in Class A
  55.      addresses, in which the high-order 8 bits are the network number.  Class
  56.      B addresses use the high-order 16 bits as the network field, and Class C
  57.      addresses have a 24-bit network part.  Sites with a cluster of local
  58.      networks and a connection to the DARPA Internet may chose to use a single
  59.      network number for the cluster; this is done by using subnet addressing.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. IIIINNNNEEEETTTT((((7777FFFF))))                                                              IIIINNNNEEEETTTT((((7777FFFF))))
  71.  
  72.  
  73.  
  74.      The local (host) portion of the address is further subdivided into subnet
  75.      and host parts.  Within a subnet, each subnet appears to be an individual
  76.      network; externally, the entire cluster appears to be a single, uniform
  77.      network requiring only a single routing entry.  Subnet addressing is
  78.      enabled and examined by the following _i_o_c_t_l(2) commands on a datagram
  79.      socket in the Internet domain; they have the same form as the SIOCIFADDR
  80.      command (see _n_e_t_i_n_t_r_o(7)).
  81.  
  82.      SIOCSIFNETMASK      Set interface network mask.  The network mask defines
  83.                          the network part of the address; if it contains more
  84.                          of the address than the address type would indicate,
  85.                          then subnets are in use.
  86.  
  87.      SIOCGIFNETMASK      Get interface network mask.
  88.  
  89. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  90.      ioctl(2), socket(2), netintro(7), route(7F), tcp(7P), udp(7P), ip(7P),
  91.      icmp(7P)
  92.      _I_R_I_X _N_e_t_w_o_r_k _P_r_o_g_r_a_m_m_i_n_g _G_u_i_d_e.
  93.  
  94. CCCCAAAAVVVVEEEEAAAATTTT
  95.      The Internet protocol support is subject to change as the Internet
  96.      protocols develop.  Users should not depend on details of the current
  97.      implementation, but rather the services exported.
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.